package com.gosling.cloudspace.common.constants;

/**
 * 用户登录状态
 *
 * 登录状态，online-正常;lock-锁定;offline-退出;logout-注销
 *
 * @author lihonglin
 * @date 2024/11/5 下午3:05
 */
public enum UserLoginStatusEnum {

    ONLINE("online", "正常"),
    LOCK("lock", "锁定"),
    OFFLINE("offline", "退出"),
    LOGOUT("logout", "注销");

    public final String code;
    public final String desc;

    UserLoginStatusEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * Returns the string representation of this env.
     */
    @Override
    public String toString() {
        return code + ":" + desc;
    }

}